package com.cashoutgaming.client.gin;

import com.gwtplatform.mvp.client.annotations.DefaultPlace;
import com.gwtplatform.mvp.client.annotations.ErrorPlace;
import com.gwtplatform.mvp.client.annotations.GaAccount;
import com.gwtplatform.mvp.client.annotations.UnauthorizedPlace;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import com.gwtplatform.mvp.client.gin.DefaultModule;

/**
 * Configure the places for the shared place manager; as the places evolve,
 * having a common place manager won't make sense
 * 
 */
public class SharedModule extends AbstractPresenterModule {

	@Override
	protected void configure() {
		install(new DefaultModule());

		// DefaultPlaceManager Places
		bindConstant().annotatedWith(DefaultPlace.class).to(NameTokens.desktopShell);
		bindConstant().annotatedWith(ErrorPlace.class).to(NameTokens.desktopShell);
		bindConstant().annotatedWith(UnauthorizedPlace.class).to(NameTokens.desktopShell);

		// Google Analytics
		bindConstant().annotatedWith(GaAccount.class).to("UA-8319339-6");
	}
}
